package com.tianpengtech.common.generator.model;


import java.util.Date;

public class CodeBean {

    private String packageName = "com.tianpengtech";
    private String moduleName;
    private Date createTime;
    private TableInfo table;
    private String dbName;

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public TableInfo getTable() {
        return table;
    }

    public void setTable(TableInfo table) {
        this.table = table;
    }

    public String getDbName() {
        return dbName;
    }

    public void setDbName(String dbName) {
        this.dbName = dbName;
    }

    public static CodeBean newOne(String moduleName) {

        CodeBean bean = new CodeBean();
        bean.moduleName = moduleName;
        bean.createTime = new Date();
        return bean;
    }

}

